package cn.wolfcode.transfer.mapper;

import cn.wolfcode.transfer.domain.Employee;
import cn.wolfcode.transfer.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);
    int updateByStatus(@Param("status") boolean status , @Param("id") Long id);
    int totalCount(QueryObject qo);

    List<Employee> totalList(QueryObject qo);

    Employee login(@Param("username") String username,@Param("password") String password);

    Employee selectByUsername(String username);

    void UpdatePassword(@Param("newpassword") String newpassword,@Param("id") Long id);
}